package com.xnyy.lottery.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyy.lottery.domain.dto.RegisterQueryDTO;
import com.xnyy.lottery.domain.entity.RegisterRecord;
import com.xnyy.lottery.domain.vo.MemberRegisterParkingInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.*;

/**
 * @description:
 * @auther: Administrator
 * @date: 2022/9/16 22:49
 */
public interface RegisterRecordMapper extends BaseMapper<RegisterRecord> {
    List<MemberRegisterParkingInfoVO> selectObjectList(RegisterQueryDTO dto);

    RegisterRecord selectByBarCode(@Param("barCode") String barCode);

    /**
     * 查询指定结果的信息是否存在
     *
     * @param workNo 唯一号
     * @param result 结果
     * @return
     */
    int existsByResult(@Param("workNo") String workNo, @Param("result") Integer result);

    /**
     * 获取注册与选位信息
     *
     * @param id 注册ID
     * @return
     */
    MemberRegisterParkingInfoVO selectRegisterParkingInfo(@Param("id") Long id);

    MemberRegisterParkingInfoVO getByBarCode(@Param("barCode") String barCode);
}
